<?php

namespace App\Models\Traits;

trait ModelCacheKey
{
    public function cacheKey()
    {
        return sprintf(
            "dw_%s/%s-%s",
            $this->getTable(),
            $this->getKey(),
            $this->updated_at->timestamp
        );
    }
}
